package com.oro.domain.testManyToMany;

import static javax.persistence.CascadeType.ALL;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;

/**
 * Entity implementation class for Entity: A
 * 
 */
@Entity // Corso
public class A implements Serializable {

	@ManyToMany(mappedBy = "as", cascade = ALL)
	private Collection<B> bs;

	@Id
	@GeneratedValue
	private Long id;

	private static final long serialVersionUID = 1L;

	public A() {
		super();
		bs = new ArrayList<B>();
	}

	public Collection<B> getBs() {
		return bs;
	}

	public Long getId() {
		return id;
	}

	public void setBs(Collection<B> bs) {
		this.bs = bs;
	}

	public void setId(Long id) {
		this.id = id;
	}

}
